﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Videos.aspx.vb" Inherits="Crazyforcoins.Videos" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajax:ToolkitScriptManager>
    <strong>Enjoy the Video.......</strong>
<br />
<br />
<b>You are watching the Youtube Videos</b>
<br />
<br />
<br />
<asp:FormView ID="FormView3" runat="server" DataSourceID="SqlDataSource2" 
            Width="437px" BackColor="#B0CAFF" BorderColor="#3F3F3F" 
            BorderStyle="Solid" BorderWidth="6px" Height="222px">
            <EditItemTemplate>
                <iframe width="420" height="315" src="http://www.youtube.com/embed/<%# Eval("VideoID") %>" frameborder="1"></iframe>
                <br />
                  
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                    CommandName="Update" Text="Update" />
                &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" />
            </EditItemTemplate>
            <InsertItemTemplate>
                <iframe width="420" height="315" src="http://www.youtube.com/embed/<%# Eval("VideoID") %>" frameborder="1"></iframe>
                 <br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                    CommandName="Insert" Text="Insert" />
                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" />
            </InsertItemTemplate>
            <ItemTemplate>
                <iframe width="420" height="315" src="http://www.youtube.com/embed/<%# Eval("VideoID") %>" frameborder="1"></iframe>
                <br />
            </ItemTemplate>

        </asp:FormView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:CoinsConn %>" 
        ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" 
        SelectCommand="SELECT [VideoID], [VideoTitle], [VideoDesc] FROM [Videos] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:CoinsConn %>" 
        ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" 
        SelectCommand="SELECT * FROM [Videos]"></asp:SqlDataSource>
    <br />
    <br />
     &nbsp;<b>Like this Video....!</b> 
     <br/>
    <asp:Image ID="img" runat="server" Height="35px" ImageUrl="~/Picture/like.jpg" Style="text-align: center"
        Width="55px" /> &nbsp; &nbsp; 
        <asp:Label ID="lbl_VideolikeCounts" runat="server" Text="Label" Font-Size="Medium" BorderStyle="Inset"
        Width="57px"></asp:Label>
    <br />
    <br />
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<asp:Button ID="Btn_Videolike" runat="server" Text="Like This Video"
        Width="133px" />
    <br />
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<asp:Label ID="lbl_Videolike" runat="server" Text="You have liked it"
        BorderStyle="Dotted"></asp:Label>
    &nbsp
    <asp:Image ID="img_Videolike" runat="server" ImageUrl="~/Picture/smiley.jpg" Style="text-align: center" />
    &nbsp;
    <br />
    <br />
     <b>No of views..!</b> 
    <br />
    <br />
    <asp:Label ID="lbl_VideoViews" runat="server" Text="Label" Font-Size="Medium" BorderStyle="Inset"
        Width="121px" Height="20px"></asp:Label>
    <br />
    <br />
    <b>Rate this Video!</b>  
        <ajax:Rating ID="Ratn_VideoStar" runat="server" BorderStyle="Solid" BorderWidth="1px"
            CurrentRating="0" EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar"
            Height="40px" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
            Width="200px" OnChanged="RatingControlChanged" AutoPostBack="true">
        </ajax:Rating>
<br />
<br />
<br/>
           <b>Average Rating of this Video.....!is   :</b>   <asp:Label ID="lbl_MyVideoRating" runat="server" Text="Average Rating" Font-Bold="true"></asp:Label>
    <ajax:Rating ID="Ratn_Videoavg" runat="server" BorderStyle="Solid" BorderWidth="1px" CurrentRating="0"
        EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar" Height="40px"
        StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar" Width="201px"
        ReadOnly="True">
    </ajax:Rating>
  
    
    <br />
</asp:Content>
